dm: usb: Split out more code from usb_new_device()
authorSimon Glass <[email protected]>
Wed, 25 Mar 2015 18:22:06 +0000 (12:22 -0600)
committerSimon Glass <[email protected]>
Sat, 18 Apr 2015 17:11:21 +0000 (11:11 -0600)
commit91398f985460bb8ff47db2b406a5fc7fbc31ab9f
treed44b3e7e137b6227ce8465ad5e19b07e77cffdbe
parent128fcac087664b63757bc2bb2a9fd943bd2b797d
dm: usb: Split out more code from usb_new_device()

Move the code that sets up the device with a new address into its own
function, usb_prepare_device().

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
common/usb.c